'''
Created on 2010/04/02

@author: enu
'''
import oauth2

class Request(object):
  def __init__(self, params):
    self._params = params
      
  @classmethod
  def generateFromWsgiRequest(cls, wsgiRequest):
    params = oauth2.Request.from_request(
      wsgiRequest.method, wsgiRequest.path_url,
      None, dict(wsgiRequest.params.items()), None)
    request = Request(params)
    return request
  
  def authenticateRequest(self):
    pass
  